#include "stdafx.h"
#include "CppUnitTest.h"
#include "ImageProcOpenCVLib.h"
#include "IResize.h"
#include "UnitTestValidStep.h"
#include "ImageProcSteps.h"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace ImageProcOpenCVLibTest
{		
	TEST_CLASS(IResizeTest)
	{
	private:
		IResize* _pResize;
		ImageProcSteps *_steps;
		ImageExpt *_ief;
		ImageProcStepLibs *_Libs;
	public:
		IResizeTest()
		{
			_pResize = new IResize();
			_steps = new ImageProcSteps();
			_Libs = new ImageProcStepLibs();
			_ief = '\0';
		}

		~IResizeTest()
		{
			if(_pResize != '\0')
				delete _pResize;
			if (_steps != '\0')
				delete _steps;
			if ( _Libs != '\0')
				delete _Libs;
			if (_ief != '\0')
				delete _ief;
		}
		
		TEST_METHOD(CreateIResize)
		{
			Assert::IsNotNull(_steps);
			Assert::IsNotNull(_pResize);
			Assert::IsNotNull(_Libs);
			Assert::IsNull(_ief);
		}

	};
}